<?php
	$archivo = time()."_post.txt";
	$fp = fopen($archivo, 'a');
	fwrite($fp, "------POST\n");	
	foreach ($_POST as $key => $value) {
		fwrite($fp, "$key: $value\n");
	}

	fwrite($fp, "------GET\n");	
	foreach ($_GET as $key => $value) {
		fwrite($fp, "$key: $value\n");
	}
	fclose($fp);

?>